﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WaitForFeedbackMotionList.aspx.cs" Inherits="OUSMS.WaitForFeedbackMotionList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="topchannel">
        待评审的提案列表
    </div>
    <asp:GridView ID="MotionsGridView" runat="server" CssClass="table1" AutoGenerateColumns="False"
        ItemType="OUSMS.AppLogic.DataAccessLayer.Motions" AllowPaging="True" ShowHeaderWhenEmpty="True" EmptyDataText="没有待评审的提案"
        SelectMethod="MotionsGridView_GetData" OnRowDataBound="MotionsGridView_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <asp:Label ID="indexLbl" runat="server" Font-Bold="true"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                    Wrap="false" Width="30px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Font-Bold="true" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="标题">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Item.Title.Length>20?Item.Title.Substring(0,20)+"...":Item.Title %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                    Wrap="false" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="提交时间">
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# Item.SumbitDateTime.HasValue?Item.SumbitDateTime.Value.ToString("yyyy/MM/dd HH:mm"):""%>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                    Wrap="false" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="派发时间">
                <ItemTemplate>
                    <asp:Label ID="Label4" runat="server" Text='<%# Item.TransferDateTime.HasValue?Item.TransferDateTime.Value.ToString("yyyy/MM/dd HH:mm"):""%>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                    Wrap="false" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="评审截止日期">
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text='<%# Item.FeedbackDeadlineDateTime.HasValue?Item.FeedbackDeadlineDateTime.Value.ToString("yyyy/MM/dd"):""%>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                    Wrap="false" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:TemplateField>
           <%-- <asp:TemplateField HeaderText="评审进度">
                <ItemTemplate>
                    <asp:Label ID="feedbackProgressLbl" runat="server" Text="" Font-Bold="true"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                    Wrap="false" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:HyperLink ID="viewHyperLink" runat="server" Font-Underline="true" Font-Bold="true" NavigateUrl='<%# "GiveFeedbackByExpert.aspx?MID=" + Item.ID+"&Role="+Request.QueryString["Role"] %>'>评审</asp:HyperLink>
                </ItemTemplate>
                <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle"
                    Wrap="false" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="row2" />
        <PagerStyle CssClass="rowend" HorizontalAlign="Center" />
        <RowStyle CssClass="row1" />
        <AlternatingRowStyle CssClass="row2" />
        <EmptyDataRowStyle CssClass="row1" />
    </asp:GridView>
</asp:Content>
